home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16437 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.6 KB

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland 5.0 16-bit Linker Problems
  5. Date: 10 Apr 1996 21:58:50 GMT
  6. Organization: Borland International
  7. Message-ID: <4khauq$o5e@druid.borland.com>
  8. References: <4kbnrg$ofr@Grouper.Exis.Net> <316B8C76.381A@craft.camp.clarkson.edu> <316C06E9.1FF4@crc.ricoh.com>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <316C06E9.1FF4@crc.ricoh.com>, jamey@crc.ricoh.com says...
  15. >
  16. >Yogerson Falcon wrote:
  17. >> 
  18. >> > After loading the patch, I found I still could not link 16 bit code.
  19. >> > After some more reading, The CONAGENT.EXE properties where set to the
  20. >> > following:
  21. >> >                 Program:  Close on Exit was set.
  22. >> >                 Memory:   Total, Intial Environment, DPMI Memory
  23. >> >                                 Set to Auto
  24. >> >
  25. >> 
  26. >>         I been having some problem compiling 16-bit application under BC5.0
  27. >> (Development Suite).. I have 16 MB (As the BC5.0 requires) and Win 95... But 
  28. w
  29. >hen
  30. >> compiling a short 16-bit program the linker gave an "out of memory" error ..
  31. >> However, for some reason when you install only BC5.0 (none of the extras, 
  32. whon
  33. >ever
  34. >> is using the Development Suite), then restart the computer and run the 
  35. unistal
  36. >l
  37. >> program for BC5.0 (which will die after unregistering BC5.0), the linker 
  38. works
  39. >;
  40. >> however, if you install the patch the linker start giving the "out of 
  41. memory"
  42. >> error (the only way to make work again is to reinstall Win 95, apparently 
  43. the
  44. >> patch corruptes some Win 95 files, and then reinstall BC5.0).
  45. >
  46. >i just installed BC++ 5.0 and the patch (bc50p1) and ran into the same problem 
  47. >described above.  i called borland and they asked me to run the program 
  48. CONAGENT
  49. >.EXE 
  50. >that comes with windows and is located in the \win95\system directory.  the 
  51. guy 
  52. >from 
  53. >tech support had me make sure that the conagent PIF file (i.e. shortcut in 
  54. w95) 
  55. >was 
  56. >there as well.  the properties for conagent under "program" must be set to 
  57. "clos
  58. >e on 
  59. >exit" and in the memory section, set to "total = auto" and "initial 
  60. environment 
  61. >= 
  62. >auto".  he had me run the program once then reboot my machine.  i asked him 
  63. what
  64. > the 
  65. >conagent was and he had no idea and asked around the shop and nobody could 
  66. tell 
  67. >him. 
  68. > there is a brief explanation of this process in the readme.txt file in \bc5, 
  69. se
  70. >arch 
  71. >for "out of memory".  anyway, i do not have the problem anymore but would 
  72. really
  73. > like 
  74. >to know why and how this resolved it.  also, they suggested that i create all 
  75. ne
  76. >w 
  77. >project files :-(  currently, my "out of the box" experience with this latest 
  78. bo
  79. >rland 
  80. >release has been a sour one.  i have been using borland c++ for years.  when i 
  81. g
  82. >et a 
  83. >new release like this one i expect to be able to a) load my old project files 
  84. an
  85. >d b) 
  86. >for my code to compile with minimal effort.  so far, i cannot get my 16bit 
  87. code 
  88. >to 
  89. >link.  i am getting errors like "automatic data segment exceeds 64k" and that 
  90. so
  91. >me of 
  92. >my library objects have not been found.  if anybody's having any success with 
  93. th
  94. >is 
  95. >release, please let us know what you've done to make it work.
  96.  
  97.     CONAGENT is the Windows 95 utility that handles running 16-bit applications 
  98. from 32-bit applications. Windows 95 comes configured in a way that doesn't 
  99. work with BC++ 5.0.
  100.     "Automatic data segment exceeds 64k" comes up because some things have 
  101. grown, most likely in the runtime library. Chances are that your application 
  102. had close to 64k of data with 4.5, and it's now outgrown your memory model. Try 
  103. it in large or compact.
  104.  
  105.